package com.jade.zsy.crm.entity;

import com.jade.bss.db.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 积分历史
 * User: JinYa 2009_jinya@163.com
 * Date: 2016-4-25
 * Time: 15:04
 * Version : 1.0
 * Remark:
 * History:
 */
@Entity
@Table(name = "STORE_CRM_INTEGRAL_HIS")
public class IntegralHis extends IdEntity {
    /** 实付金额 */
    public static final int MONEY_TYPE_CASH = 0;
    /** 订单金额 高 */
    public static final int MONEY_TYPE_ORDER = 1;

    /** 排序优先级 高 */
    public static final int TYPE_NO_LIMIT = 0;
    /** 排序优先级 高 */
    public static final int TYPE_GREAT = 1;
    public static final int TYPE_LESS = 2;
    public static final int TYPE_EQULE = 3;
    public static final int TYPE_GREAT_EQULE = 4;
    public static final int TYPE_LESS_EQULE = 5;
    public static final int TYPE_LESS_MIDDLE = 6;
    @Column (name = "title")
    private String title;
    /**
     * 会员编号
     */
    @Column (name = "crm_id", nullable = false, length = 100)
    private long crmId;
    @Column (name = "crmCode")
    private String crmCode;
    @Column (name = "crmName")
    private String crmName;
    /**
     * 积分类型
     */
    @Column (name = "integral_type")
    private int integralType=0;
    /**
     * 积分类型描述
     */
    @Column (name = "typeDesc")
    private String typeDesc;
    /**
     * 积分
     */
    @Column (name = "integral")
    private int integral=1;
    /**
     * 来源店铺
     */
    @Column (name = "store_id")
    private long storeId;
    @Column (name = "storeCode")
    private String storeCode;
    @Column (name = "store_name")
    private String storeName;
    /**
     * 期末积分
     */
    @Column (name = "qcjf")
    private int qcjf=0;
    /**
     * 期末消费数量
     */
    @Column (name = "qcsl")
    private int qcsl=0;
    /**
     * 期末消费金额
     */
    @Column (name = "qcje")
    private float qcje=0;
    /**
     * 积分增减方向 0增加 1减少
     */
    @Column (name = "zjfx")
    private int zjfx=0;
    /**
     * 积分增减
     */
    @Column (name = "zj")
    private int zj=0;
    /**
     * 积分变化值
     */
    @Column (name = "jf")
    private int jf=0;
    /**
     * 当前消费数量
     */
    @Column (name = "sl")
    private int sl=0;
    /**
     * 当前消费金额
     */
    @Column (name = "je")
    private int je=0;
    /**
     * 期末积分
     */
    @Column (name = "qmjf")
    private int qmjf=0;
    /**
     * 期末消费数量
     */
    @Column (name = "qmsl")
    private int qmsl=0;
    /**
     * 期末消费金额
     */
    @Column (name = "qmje")
    private int qmje=0;
    /**
     * 联系单据(关联单据编号)
     */
    @Column (name = "lxdj")
    private String lxdj;
    /**
     * 积分有效到期日
     */
    @Column (name = "yxrq")
    private int yxrq;
    /**
     * 积分余额(有效期内的)
     */
    @Column (name = "yxjf")
    private int yxjf;
    /**
     * 来源类型 0-ipos 1-openshop 2-taobao 3-paipai 4-dangdang 5-jingdong
     */
    @Column (name = "lylx")
    private int lylx=0;
    /**
     * 描述
     */
    @Column(name = "remark", nullable = false, length = 64)
    private String remark;

    public long getCrmId() {
        return crmId;
    }

    public void setCrmId(long crmId) {
        this.crmId = crmId;
    }

    public int getIntegralType() {
        return integralType;
    }

    public void setIntegralType(int integralType) {
        this.integralType = integralType;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public long getStoreId() {
        return storeId;
    }

    public void setStoreId(long storeId) {
        this.storeId = storeId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getCrmCode() {
        return crmCode;
    }

    public void setCrmCode(String crmCode) {
        this.crmCode = crmCode;
    }

    public String getCrmName() {
        return crmName;
    }

    public void setCrmName(String crmName) {
        this.crmName = crmName;
    }

    public String getTypeDesc() {
        return typeDesc;
    }

    public void setTypeDesc(String typeDesc) {
        this.typeDesc = typeDesc;
    }

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    public int getQcjf() {
        return qcjf;
    }

    public void setQcjf(int qcjf) {
        this.qcjf = qcjf;
    }

    public int getQcsl() {
        return qcsl;
    }

    public void setQcsl(int qcsl) {
        this.qcsl = qcsl;
    }

    public float getQcje() {
        return qcje;
    }

    public void setQcje(float qcje) {
        this.qcje = qcje;
    }

    public int getZjfx() {
        return zjfx;
    }

    public void setZjfx(int zjfx) {
        this.zjfx = zjfx;
    }

    public int getZj() {
        return zj;
    }

    public void setZj(int zj) {
        this.zj = zj;
    }

    public int getJf() {
        return jf;
    }

    public void setJf(int jf) {
        this.jf = jf;
    }

    public int getSl() {
        return sl;
    }

    public void setSl(int sl) {
        this.sl = sl;
    }

    public int getJe() {
        return je;
    }

    public void setJe(int je) {
        this.je = je;
    }

    public int getQmjf() {
        return qmjf;
    }

    public void setQmjf(int qmjf) {
        this.qmjf = qmjf;
    }

    public int getQmsl() {
        return qmsl;
    }

    public void setQmsl(int qmsl) {
        this.qmsl = qmsl;
    }

    public int getQmje() {
        return qmje;
    }

    public void setQmje(int qmje) {
        this.qmje = qmje;
    }

    public String getLxdj() {
        return lxdj;
    }

    public void setLxdj(String lxdj) {
        this.lxdj = lxdj;
    }

    public int getYxrq() {
        return yxrq;
    }

    public void setYxrq(int yxrq) {
        this.yxrq = yxrq;
    }

    public int getYxjf() {
        return yxjf;
    }

    public void setYxjf(int yxjf) {
        this.yxjf = yxjf;
    }

    public int getLylx() {
        return lylx;
    }

    public void setLylx(int lylx) {
        this.lylx = lylx;
    }
}
